// Environment.h
#include <QGraphicsScene>
#include <QPainterPath>
#include <QObject>

class Environment : public QGraphicsScene {
    Q_OBJECT
public:
    explicit Environment(QObject* parent = nullptr);
    void generateRandomPath();
    void generateCircularPath();  // 用于生成圆形路径

private:
    QPainterPath trackPath;
    void drawGround();
};